package com.itheima.service;

import com.itheima.dto.DishDto;
import com.itheima.vo.DishListVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService {
    @Transactional
    boolean addDish(DishDto dto);

    @Transactional
    boolean modifyDish(DishDto dto);

    @Transactional
    boolean deleteDish(String[] dishIds);

    List<DishListVo> getDishList(String categoryId);

    List<DishListVo> getDishPage(String name, Integer page, Integer pageSize);

    DishDto getDishById(String id);

    boolean modifyStatus(int status, String... ids);
}
